package com.lhm.entity;

import java.util.Date;

public class Order {
    private int ordid;
    private int uid;
    private double amount;
    private int ispay ;
    private Date tpay ;
    private String addr ;
    private String phone ;
    private String shipno;
    private Date tcreate= new Date();

    public int getOrdid() {
        return ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getIspay() {
        return ispay;
    }

    public void setIspay(int ispay) {
        this.ispay = ispay;
    }

    public Date getTpay() {
        return tpay;
    }

    public void setTpay(Date tpay) {
        this.tpay = tpay;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getShipno() {
        return shipno;
    }

    public void setShipno(String shipno) {
        this.shipno = shipno;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    public Order(int ordid, int uid, double amount, int ispay, Date tpay, String addr, String phone, String shipno, Date tcreate) {
        this.ordid = ordid;
        this.uid = uid;
        this.amount = amount;
        this.ispay = ispay;
        this.tpay = tpay;
        this.addr = addr;
        this.phone = phone;
        this.shipno = shipno;
        this.tcreate = tcreate;
    }

    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "ordid=" + ordid +
                ", uid=" + uid +
                ", amount=" + amount +
                ", ispay=" + ispay +
                ", tpay=" + tpay +
                ", addr='" + addr + '\'' +
                ", phone='" + phone + '\'' +
                ", shipno='" + shipno + '\'' +
                ", tcreate=" + tcreate +
                '}';
    }
}
